import {sendjson} from './client.js'
try {
  const response = await sendjson(
    {
      'sign': 'test_text',
      'test_text': '测试数据',
      'params':''
    },
    'localhost',
    3473
  );

  const sign = response.sign;
  if (sign === 'error') {
    console.error('收到异常:', response[sign]);
  } else {
    console.info('收到响应:', response[sign]);
  }
} catch (err) {
  console.error('请求失败:', err);
}
